# $Id: PKGBUILD 67764 2012-03-14 10:43:38Z giovanni $
# Maintainer: Jonathan Conder <jonno.conder@gmail.com>
# Contributor: Snowknight (hopkinsth@gmail.com)

_pkgbasename=oauth
pkgname=python2-oauth
pkgver=1.0.1
pkgrel=2
pkgdesc="An open protocol to allow API authentication from desktop and web applications."
arch=('any')
url="http://code.google.com/p/oauth/"
license=('MIT')
depends=('python2')
makedepends=('python2-distribute')
source=("http://pypi.python.org/packages/source/${_pkgbasename:0:1}/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
sha256sums=('e769819ff0b0c043d020246ce1defcaadd65b9c21d244468a45a7f06cb88af5d')

build() {
  cd "$srcdir/$_pkgbasename-$pkgver"

  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgbasename-$pkgver"

  python2 setup.py install --root="$pkgdir"
  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
